#ifndef CASAENGINE_ASSERT_H_
#define CASAENGINE_ASSERT_H_

#include "SystemPlatform.h"

#if defined(CASAENGINE_DEBUG)

#   if defined(PLATFORM_WINDOWS)
#       define CASAENGINE_ASSERT( x )           if ( !(x)) { __debugbreak(); } //if ( !(x)) WinDebugBreak()

#   elif defined (PLATFORM_ANDROID)

#		include <android/log.h>
#       define CASAENGINE_ASSERT( x )           if ( !(x)) { __android_log_assert( "assert", "grinliz", "ASSERT in '%s' at %d.", __FILE__, __LINE__ ); }

#   else

#       include <assert.h>
#       define CASAENGINE_ASSERT                assert
#   endif

#else
#   define CASAENGINE_ASSERT( x )           {}
#endif

#endif // ASSERT_H_
